package com.intelligent.ispc.core.entity;

import com.intelligent.ispc.common.persistence.BaseEntity;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * Created by Julia.Zhou on 2016/02/17.
 */
@Entity
@Table(name = "t_psattribute")
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
public class PSAttribute extends BaseEntity {
    private String name;
    private String value;
    private Boolean isDefault;
    private Boolean isShow;

    @ManyToOne
    @JoinColumn(name = "project_id")
    private Project project;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public Boolean getIsDefault() {
        return isDefault;
    }

    public void setIsDefault(Boolean isDefault) {
        this.isDefault = isDefault;
    }

    public Boolean getIsShow() { return isShow; }

    public void setIsShow(Boolean isShow) {
        this.isShow = isShow;
    }

    public Project getProject() {
        return project;
    }

    public void setProject(Project project) {
        this.project = project;
    }
}
